package com.fuang.io.nio2;

import java.nio.channels.AsynchronousSocketChannel;

/**
 * nio2服务类启动类
 * 1，启动AsynchronousServerSocketChannel监听端口
 * Created by Fuang on 2018-9-20.
 */
public class TimeServer {

    public static void main(String[] args) {
        int port = 8080;
        new Thread(new AsyncTimeServerHandler(port)).start();
    }
}
